# -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 11:00:06 2015

@author: liliangrong
"""

def print_all(f):
    print f.read()
    
def rewind(f):
    f.seek(0)
    
def print_a_line(lines,f):
    print lines,f.readline()
    
input_file ="my_info_1.txt"
c_file = open(input_file)

print_all(c_file)
print "++++++++++++++++++++++++++++"
rewind(c_file)
print "++++++++++++++++++++++++++++"
lines = 5
print_a_line(lines,c_file)
print "============================"
lines = lines + 1
print_a_line(lines,c_file)
